package report

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-user-service/infrastructure/common/utils"
)

type ReportShareRepositoryIface interface {
	// GetInfo 获取单条数据
	GetInfo(ctx context.Context, condition map[string]interface{}) (*ReportShare, error)
	// GetList 获取列表数据
	GetList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo, orderBy string) (int64, []*ReportShare, error)
	// Update 更新数据
	Update(ctx context.Context, data, condition map[string]interface{}) (bool, error)
	// Insert 插入数据
	Insert(ctx context.Context, commonUserLoginRecode *ReportShare) (bool, error)
	// Delete 逻辑删除数据
	Delete(ctx context.Context, condition map[string]interface{}) (bool, error)
	// SendShareReceiveMsg 发送分享领取通知
	SendShareReceiveMsg(ctx context.Context, tenantCode string, projectTitle string, shareUserTenantId string, receiveMobile string) error
}
